// COPYRIGHT © 2020 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute and use this code without modification,
// provided you adhere to the terms of the MLA and include this
// copyright notice.
//
// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
//
// For additional information, contact:
// Environmental Systems Research Institute, Inc.
// Attn: Contracts and Legal Services Department
// 380 New York Street
// Redlands, California, USA 92373
// USA
//
// email: contracts@esri.com
//
// See http://js.arcgis.com/3.34/esri/copyright.txt for details.

define(["dojo/_base/declare","dojo/_base/lang","dojo/_base/array","dojo/_base/json","dojo/has","../kernel","../lang","../geometry/jsonUtils"],(function(e,o,t,r,s,n,a,i){var m=e(null,{declaredClass:"esri.tasks.ProjectParameters",geometries:null,outSR:null,transformation:null,transformForward:null,toJson:function(){var e=t.map(this.geometries,(function(e){return e.toJson()})),o={};return o.outSR=this.outSR.wkid||r.toJson(this.outSR.toJson()),o.inSR=this.geometries[0].spatialReference.wkid||r.toJson(this.geometries[0].spatialReference.toJson()),o.geometries=r.toJson({geometryType:i.getJsonType(this.geometries[0]),geometries:e}),this.transformation&&(o.transformation=this.transformation.wkid||r.toJson(this.transformation)),a.isDefined(this.transformForward)&&(o.transformForward=this.transformForward),o}});return s("extend-esri")&&o.setObject("tasks.ProjectParameters",m,n),m}));